package com.core.config;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @program: JSPStudy
 * @description: .
 * @author: djs
 * @create: 2023-04-27 16:45
 **/

@Configuration
//针对于SSM的配置规则，记住就好，不纠结
//让SpringConfig配置类扫描除了Controller的包，然后让SpringMVCConfig配置类扫描Controller包，然后这样程序就可以正常运行起来
@ComponentScan(value = "com.core", excludeFilters = @ComponentScan.Filter(
        type = FilterType.ANNOTATION,
        classes = Controller.class
))
@Import({JdbcConfig.class,MyBatisConfig.class})
@PropertySource({"classpath:jdbc.properties"})
@EnableTransactionManagement
public class SpringConfig {
}
